package com.xbongbong.pro.knowledge.base.pojo.dto;

import com.xbongbong.paas.domain.entity.ext.PaasAttachmentEntityExt;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/** 新增知识条目参数
 *
 * @author ruansicheng
 */
@Getter
@Setter
@ToString
public class KnowledgeAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1704466726936606227L;

    @NotNull(message = "{dto.msg.formDataAdd.menuId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long menuId;
    /**
     *
     */
    @NotNull(message = "{dto.msg.formDataAdd.title.NotNull}")
    private String title;

    /**
     * 知识id
     */
    private Long id;

    /**
     * 知识库id
     */
    @NotNull(message = "{dto.msg.formDataAdd.knowledgeBaseId.NotNull}")
    private Long knowledgeBaseId;

    /**
     * 目录id
     */
    @NotNull(message = "{dto.msg.formDataAdd.catalogueId.NotNull}")
    private Long catalogueId;

    /**
     * 拓展问法
     */
    private List<String> expandConsult;

    /**
     * 关键词
     */
    private List<String> keywords;

    /**
     * 标签
     */
    private List<Long> label;

    /**
     * 附件
     */
    private List<PaasAttachmentEntityExt> appendix;

    /**
     * 建议回复纯文本
     */
    private String content;

    /**
     * 建议回复
     */
    @NotNull(message = "{dto.msg.formDataAdd.contentArray.NotNull}")
    private List<KnowledgeContentDTO> contentArray;

    private Integer businessType;

    private Integer saasMark;
    /**
     * 状态
     */
    private Integer status;

}
